#include <iostream>
using namespace std;

template <typename T>
class Sample
{

public:
    Sample(T n) : n(n) {}
    bool operator==(const Sample &s) { return n == s.n; }

private:
    T n;
};

int main()
{
    Sample<int> s1(1);
    Sample<int> s2(2);
    Sample<int> s3(1);

    if (s1 == s2)
    {
        cout << "s1 == s2" << endl;
    }
    else
    {
        cout << "s1 != s2" << endl;
    }

    if (s1 == s3)
    {

        cout << "s1 == s3" << endl;
    }
    else
    {
        cout << "s1 != s3" << endl;
    }
}